<?php
/**
 * Created by PhpStorm.
 * User: yancheng (cheng@love.xiaoyan.me)
 * Date: 14-6-25
 * Time: 下午4:15
 */



include APP_DIR . '/libs/funcs.php';
include APP_DIR . '/libs/XYRouter/Common.php';
include APP_DIR . '/libs/XYRouter/Cache.php';
include APP_DIR . '/libs/XYRouter/Exceptions.php';
include APP_DIR . '/libs/XYRouter/RouterCore.php';
include APP_DIR . '/libs/XYRouter/Router.php';
include APP_DIR . '/libs/XYRouter/TemplateCore.php';
include APP_DIR . '/libs/XYRouter/Controller.php';
include APP_DIR . '/libs/XYRouter/DBCore.php';

$rawData = file_get_contents("php://input");
if($rawData){
    if(json_decode($rawData,1)){
        $_POST = array_merge($_POST,json_decode($rawData,1));
        $_REQUEST = array_merge($_COOKIE,$_GET,$_POST);
    }
}
